package com.twu.biblioteca;

import java.io.BufferedReader;
import java.io.InputStreamReader;


public class CheckOut implements Task {
    Library library;
    CheckOut(Library library){
        this.library=library;
    }
    @Override
    public void execute()  {
        try {
            BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
            System.out.println("enter a title to checkout");
            String title = in.readLine();
            library.checkOutAnObject(title);
            System.out.println("Enjoy!!!!!");
        }
        catch (Exception e){
            System.out.println(e);
        }
    }
}
